package com.ydt.controller;

import com.ydt.entity.YdtShipping;
import com.ydt.service.YdtShippingService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (YdtShipping)表控制层
 *
 * @author makejava
 * @since 2020-12-24 14:32:31
 */
@RestController
@RequestMapping("ydtShipping")
public class YdtShippingController {
    /**
     * 服务对象
     */
    @Resource
    private YdtShippingService ydtShippingService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public YdtShipping selectOne(Integer id) {
        return this.ydtShippingService.queryById(id);
    }

}